package com.netease.nim.demo.session.viewholder;

import com.netease.nim.demo.session.model.extension.DefaultCustomAttachment;

/**
 * Created by zhoujianghua on 2015/4/10.
 */
public class MsgViewHolderDefCustomLeft extends MsgViewHolderTextLeft {

    @Override
    protected void refresh(Object item) {
        super.refresh(item);
        DefaultCustomAttachment attachment = (DefaultCustomAttachment) messageItem.getMessage().getAttachment();

        String text = "type: " + attachment.getType() + ", data: " + attachment.getContent();

        textMessageTextView.setText(text);
    }
}
